package orders;


import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;

public class Order {
    private String stockName;
    private int stockNumber;
    private OrderType orderType;
    Logger logger = Logger.getLogger(Order.class.getName());

    public Order(String stockName, int stockNumber, OrderType orderType) {
        this.stockName = stockName;
        this.stockNumber = stockNumber;
        this.orderType = orderType;
        logger.setLevel(Level.DEBUG);
        logger.addAppender(new ConsoleAppender());
    }

    public String getStockName() {
        logger.debug("Getting Stock Name");
        return stockName;
    }

    public OrderType getOrderType() {
        return orderType;
    }

    public int getStockNumber() {
        return stockNumber;
    }
}
